68% wpmanagerpro

Code Review | wpmanagerpro

WordPress plugin wpmanagerpro scored68%from 54 tests.

About plugin

  • Plugin page: wpmanagerpro
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Aug 4, 2013
  • Latest release: Sep 16, 2013
  • Number of updates: 13
  • Update frequency: every 3.3 days
  • Top authors: fayland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼5.32ms] Passed 4 tests

Server-side resources used by wpmanagerpro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2342.88 ▲1.88
Dashboard /wp-admin3.52 ▲0.1746.63 ▼16.32
Posts /wp-admin/edit.php3.64 ▲0.2847.82 ▲1.51
Add New Post /wp-admin/post-new.php6.10 ▲0.2179.01 ▼8.35
Media Library /wp-admin/upload.php3.44 ▲0.2137.94 ▲4.50

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 126 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
mng_user_hit_count
theysaidso_admin_options

Browser metrics Passed 4 tests

wpmanagerpro: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲3813.22 ▼1.344.56 ▲2.5832.12 ▼10.80
Dashboard /wp-admin2,215 ▲244.82 ▼0.07110.69 ▲0.2044.83 ▼5.28
Posts /wp-admin/edit.php2,094 ▲52.04 ▲0.0639.32 ▲4.4838.98 ▲5.33
Add New Post /wp-admin/post-new.php1,542 ▲1423.11 ▲5.01662.92 ▲69.2151.77 ▼3.62
Media Library /wp-admin/upload.php1,400 ▲124.19 ▲0.0098.51 ▲2.3543.86 ▼0.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • mng_user_hit_count
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpmanagerpro/class/backups.php
  • 72× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Dropbox\\Exception' not found in wp-content/plugins/wpmanagerpro/vendor/Dropbox/Exception/NetworkIO.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wpmanagerpro/vendor/google-api-client/contrib/Google_GanService.php:25
    • > PHP Warning
      require_once(io/Google_HttpRequest.php): failed to open stream: No such file or directory in wp-content/plugins/wpmanagerpro/vendor/google-api-client/io/Google_IO.php on line 18
    • > PHP Fatal error
      Uncaught Error: Interface 'Dropbox\\ValueStore' not found in wp-content/plugins/wpmanagerpro/vendor/Dropbox/ArrayEntryStore.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wpmanagerpro/vendor/google-api-client/contrib/Google_Oauth2Service.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wpmanagerpro/vendor/google-api-client/contrib/Google_BloggerService.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wpmanagerpro/vendor/google-api-client/contrib/Google_WebfontsService.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wpmanagerpro/vendor/google-api-client/contrib/Google_YouTubeAnalyticsService.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Cache' not found in wp-content/plugins/wpmanagerpro/vendor/google-api-client/cache/Google_MemcacheCache.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/wpmanagerpro/vendor/google-api-client/contrib/Google_AndroidpublisherService.php:25

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: authentication, admin, seo, administration, automatic...

wpmanagerpro/wpmanagerpro.php Passed 13 tests

This is the main PHP file of "wpmanagerpro" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
86 characters long description:
Manage Multiple WordPress sites from one dashboard. Visit wpmanagerpro.com to sign up.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
It is important to fix the following items
  • Do not include executable or dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/wpmanagerpro/vendor/Dropbox/trusted-certs.crt
57,894 lines of code in 123 files:
LanguageFilesBlank linesComment linesLines of code
PHP1233,44414,83357,894

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity2.63
▷ Minimum class complexity1.00
▷ Maximum class complexity442.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes1,426
▷ Abstract classes50.35%
▷ Concrete classes1,42199.65%
▷ Final classes181.27%
Methods11,654
▷ Static methods760.65%
▷ Public methods11,59899.52%
▷ Protected methods110.09%
▷ Private methods450.39%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants23
▷ Global constants834.78%
▷ Class constants1565.22%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin