78% aucor-core

Code Review | Aucor core

WordPress plugin Aucor core scored78%from 54 tests.

About plugin

  • Plugin page: aucor-core
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.3-5.5.1
  • WordPress version: 6.3.1
  • First release: Jul 31, 2019
  • Latest release: Oct 7, 2020
  • Number of updates: 12
  • Update frequency: every 36.2 days
  • Top authors: aucor (91.67%)deployer (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,900 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼11.01ms] Passed 4 tests

This is a short check of server-side resources used by Aucor core
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2045.90 ▲6.89
Dashboard /wp-admin3.42 ▲0.1239.29 ▼27.95
Posts /wp-admin/edit.php3.53 ▲0.1756.06 ▲11.49
Add New Post /wp-admin/post-new.php6.10 ▲0.2197.60 ▼13.56
Media Library /wp-admin/upload.php3.40 ▲0.1832.62 ▼9.41
All Comments /wp-admin/edit-comments.php3.1928.70

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 111 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Aucor core: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,964 ▼79313.75 ▼0.481.52 ▼0.6034.37 ▼4.83
Dashboard /wp-admin1,402 ▼7865.34 ▼0.54112.91 ▼11.3184.87 ▲39.63
Posts /wp-admin/edit.php1,924 ▼1682.04 ▲0.0350.05 ▲6.1642.89 ▲0.78
Add New Post /wp-admin/post-new.php1,362 ▼5317.95 ▼0.05778.31 ▲107.2149.63 ▼8.67
Media Library /wp-admin/upload.php1,340 ▼484.20 ▼0.00122.33 ▲12.1351.58 ▲0.45
All Comments /wp-admin/edit-comments.php1,4085.1281.9471.60

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • 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)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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/aucor-core/tests/bootstrap.php
  • 86× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/aucor-core/tests/security/test-security-disable-admin-email-check.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/aucor-core/tests/localization/test-localization-string-translations.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Aucor_Core_Sub_Feature' not found in wp-content/plugins/aucor-core/features/debug/sub_features/class-debug-style-guide.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Aucor_Core_Sub_Feature' not found in wp-content/plugins/aucor-core/features/security/sub_features/class-security-disable-admin-email-check.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Aucor_Core_Feature' not found in wp-content/plugins/aucor-core/features/classic-editor/class-classic-editor.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Aucor_Core_Sub_Feature' not found in wp-content/plugins/aucor-core/features/debug/sub_features/class-debug-wireframe.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Aucor_Core_Sub_Feature' not found in wp-content/plugins/aucor-core/features/security/sub_features/class-security-remove-comment-moderation.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Aucor_Core_Sub_Feature' not found in wp-content/plugins/aucor-core/features/dashboard/sub_features/class-dashboard-remove-panels.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/aucor-core/tests/admin/test-admin-remove-customizer.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/aucor-core/tests/localization/test-localization.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: wordpress, core, aucor

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

The main file in "Aucor core" v. 1.1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aucor-core.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,984 lines of code in 103 files:
LanguageFilesBlank linesComment linesLines of code
PHP901,1801,5683,300
JavaScript24794127
Bourne Shell12111123
Markdown126085
YAML17382
XML24114078
PO File2202468
JSON20063
Sass13057
CSS1011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.62
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes88
▷ Abstract classes22.27%
▷ Concrete classes8697.73%
▷ Final classes00.00%
Methods274
▷ Static methods4516.42%
▷ Public methods274100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions2371.88%
▷ Anonymous functions928.12%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin