84% promote-extensions

Code Review | Promote extensions

WordPress plugin Promote extensions scored84%from 54 tests.

About plugin

  • Plugin page: promote-extensions
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2017
  • Latest release: Aug 4, 2017
  • Number of updates: 11
  • Update frequency: every 12.5 days
  • Top authors: themezwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼2.60ms] Passed 4 tests

A check of server-side resources used by Promote extensions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /57.55 ▲0.2611,182,901.07 ▲8,615.67
Dashboard /wp-admin3.67 ▲0.3250.79 ▼1.62
Posts /wp-admin/edit.php3.78 ▲0.3849.84 ▼4.07
Add New Post /wp-admin/post-new.php6.25 ▲0.3290.96 ▼10.20
Media Library /wp-admin/upload.php3.59 ▲0.3241.30 ▲5.50

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 12 new options
New WordPress options
theysaidso_admin_options
widget_promote-team-widget
widget_recent-posts
widget_promote-client-widget
widget_recent-comments
widget_promote-service-widget
can_compress_scripts
widget_promote-counter-widget
widget_theysaidso_widget
promote_companion_flag
...

Browser metrics Passed 4 tests

A check of browser resources used by Promote extensions
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.63 ▲0.281.66 ▼0.0644.62 ▲0.41
Dashboard /wp-admin2,192 ▲185.69 ▲0.16100.27 ▲4.5156.51 ▲11.66
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0035.81 ▼3.5934.03 ▼4.02
Add New Post /wp-admin/post-new.php1,526 ▼223.38 ▲0.43684.27 ▲20.0459.78 ▼4.41
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.00106.98 ▼0.1145.99 ▼1.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_promote-service-widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_promote-counter-widget
    • widget_promote-client-widget
    • promote_companion_flag
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/promote-extensions/inc/widget-counter.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/promote-extensions/inc/widget-service.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/promote-extensions/inc/widget-clients.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/promote-extensions/inc/widget-ribbon.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/promote-extensions/inc/widget-team.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/promote-extensions/promote-extensions.php:16

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: widgets, clients, widget, team members

promote-extensions/promote-extensions.php 92% from 13 tests

"Promote extensions" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,348 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP63091291,207
JavaScript16525115
CSS17326

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity39.00
▷ Minimum class complexity13.00
▷ Maximum class complexity69.00
Average method complexity8.60
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/counter.png16.58KB7.54KB▼ 54.51%
assets/js/ico-delete.png0.37KB0.30KB▼ 18.72%