84% proper-network-activation

Code Review | Proper Network Activation

WordPress plugin Proper Network Activation scored84%from 54 tests.

About plugin

  • Plugin page: proper-network-ac...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2010
  • Latest release: Mar 14, 2013
  • Number of updates: 17
  • Update frequency: every 57.7 days
  • Top authors: scribu (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

40+ active /31,034 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.03MB] [CPU: ▼6.91ms] Passed 4 tests

Analyzing server-side resources used by Proper Network Activation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.84 ▼0.51
Dashboard /wp-admin3.33 ▲0.0344.40 ▼9.52
Posts /wp-admin/edit.php3.38 ▲0.0348.86 ▲4.24
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.02 ▼16.44
Media Library /wp-admin/upload.php3.25 ▲0.0334.40 ▼1.18

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Proper Network Activation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.34 ▼0.391.82 ▼0.0842.22 ▼4.18
Dashboard /wp-admin2,209 ▲214.87 ▼1.02104.60 ▼9.0340.36 ▼2.85
Posts /wp-admin/edit.php2,092 ▲32.01 ▲0.0239.80 ▲0.4034.73 ▼1.45
Add New Post /wp-admin/post-new.php1,524 ▼923.38 ▲0.14697.04 ▲21.1466.09 ▲15.87
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.1098.44 ▼7.4842.17 ▼3.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/proper-network-activation/proper-network-activation.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: plugins, multisite, admin, activation

proper-network-activation/proper-network-activation.php Passed 13 tests

The main file in "Proper Network Activation" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Use the network activation feature of WP MultiSite without problems

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
Good job! No executable or dangerous file extensions detected148 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14513129
PO File14619

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin