78% axio-core

Code Review | Axio Core

WordPress plugin Axio Core scored78%from 54 tests.

About plugin

  • Plugin page: axio-core
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.8.3
  • WordPress version: 6.3.1
  • First release: Jan 19, 2022
  • Latest release: Jan 19, 2022
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: aucor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /811 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.43MB] [CPU: ▼4.10ms] Passed 4 tests

Server-side resources used by Axio Core
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4541.78 ▲4.17
Dashboard /wp-admin3.69 ▲0.3942.66 ▼4.31
Posts /wp-admin/edit.php3.85 ▲0.4951.86 ▲3.81
Add New Post /wp-admin/post-new.php6.35 ▲0.4679.64 ▼19.34
Media Library /wp-admin/upload.php3.66 ▲0.4338.30 ▲3.44
All Comments /wp-admin/edit-comments.php3.5024.64

Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Axio Core: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,976 ▼78514.05 ▼0.511.41 ▼0.2244.37 ▲4.01
Dashboard /wp-admin1,420 ▼7605.33 ▼0.3381.34 ▼7.0536.34 ▼5.97
Posts /wp-admin/edit.php1,935 ▼1651.98 ▲0.0338.60 ▲1.8834.30 ▲0.25
Add New Post /wp-admin/post-new.php1,493 ▼3523.05 ▼0.10652.98 ▲30.3459.85 ▲5.80
Media Library /wp-admin/upload.php1,361 ▼334.22 ▲0.11108.89 ▲5.9847.07 ▲7.23
All Comments /wp-admin/edit-comments.php1,4235.1953.4130.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/axio-core/tests/bootstrap.php
  • 99× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/axio-core/tests/localization/test-localization.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Axio_Core_Sub_Feature' not found in wp-content/plugins/axio-core/features/admin/sub_features/class-admin-notifications.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/axio-core/tests/dashboard/test-dashboard-cleanup.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/axio-core/tests/dashboard/test-dashboard-remove-panels.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/axio-core/tests/plugins/test-plugins-seo.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Axio_Core_Sub_Feature' not found in wp-content/plugins/axio-core/features/localization/sub_features/class-localization-string-translations.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Axio_Core_Feature' not found in wp-content/plugins/axio-core/features/dashboard/class-dashboard.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Axio_Core_Feature' not found in wp-content/plugins/axio-core/features/classic-editor/class-classic-editor.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/axio-core/tests/security/test-security-remove-comment-moderation.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Axio_Core_Sub_Feature' not found in wp-content/plugins/axio-core/features/admin/sub_features/class-admin-profile-cleanup.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: core, wordpress, axio-starter, axio

axio-core/plugin.php 92% from 13 tests

The main PHP script in "Axio Core" version 1.1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("axio-core.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected4,208 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
PHP1031,4571,7913,721
Bourne Shell12111123
Markdown123088
YAML17382
XML24114079
PO File2202468
CSS19240
JSON1007

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.74
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.24
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes102
▷ Abstract classes21.96%
▷ Concrete classes10098.04%
▷ Final classes00.00%
Methods315
▷ Static methods5216.51%
▷ Public methods315100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions41
▷ Named functions3175.61%
▷ Anonymous functions1024.39%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin