84% sydney-toolbox

Code Review | Sydney Toolbox

WordPress plugin Sydney Toolbox scored84%from 54 tests.

About plugin

  • Plugin page: sydney-toolbox
  • Plugin version: 1.25
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2016
  • Latest release: Oct 19, 2023
  • Number of updates: 36
  • Update frequency: every 77.0 days
  • Top authors: athemes (83.33%)vladff (16.67%)maaprote (5.56%)

Code review

54 tests

User reviews

14 reviews

Install metrics

80,000+ active /2,042,957 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.21ms] Passed 4 tests

A check of server-side resources used by Sydney Toolbox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.31 ▲6.47
Dashboard /wp-admin3.35 ▲0.0049.66 ▼8.06
Posts /wp-admin/edit.php3.46 ▲0.1046.65 ▼0.95
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.75 ▼9.66
Media Library /wp-admin/upload.php3.27 ▲0.0436.85 ▲1.84

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Sydney Toolbox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.55 ▲0.151.76 ▼0.0643.35 ▲4.88
Dashboard /wp-admin2,198 ▲215.59 ▼0.0584.25 ▼4.8840.48 ▼1.59
Posts /wp-admin/edit.php2,097 ▼32.12 ▲0.0933.90 ▼0.1234.32 ▼6.98
Add New Post /wp-admin/post-new.php1,526 ▼022.88 ▼0.28675.01 ▲13.4753.96 ▼3.56
Media Library /wp-admin/upload.php1,400 ▼34.18 ▲0.00100.20 ▲4.5643.61 ▼0.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Skin_Base' not found in wp-content/plugins/sydney-toolbox/inc/elementor/skins/block-portfolio-overlap-skin.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Skin_Base' not found in wp-content/plugins/sydney-toolbox/inc/elementor/skins/block-testimonials-skin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sydney-toolbox/inc/metaboxes/projects-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sydney-toolbox/inc/metaboxes/testimonials-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sydney-toolbox/inc/post-type-clients.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sydney-toolbox/demo-content/setup.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/sydney-toolbox/inc/metaboxes/singles-metabox.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sydney-toolbox/inc/post-type-sydney-projects.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sydney-toolbox/inc/post-type-services.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sydney-toolbox/inc/post-type-testimonials.php:69

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === sydney-toolbox === )
Please take inspiration from this readme.txt

sydney-toolbox/sydney-toolbox.php Passed 13 tests

The main PHP file in "Sydney Toolbox" ver. 1.25 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Registers custom post types and custom fields for the Sydney theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin16,494 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
XML2181568,934
PHP318739975,222
CSS43311,068
Sass213401,010
JavaScript2702257
SVG1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.95
▷ Minimum class complexity3.00
▷ Maximum class complexity40.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods131
▷ Static methods32.29%
▷ Public methods9975.57%
▷ Protected methods3224.43%
▷ Private methods00.00%
Functions25
▷ Named functions2080.00%
▷ Anonymous functions520.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin