78% wp-over-network

Code Review | WP Over Network

WordPress plugin WP Over Network scored78%from 54 tests.

About plugin

  • Plugin page: wp-over-network
  • Plugin version: 0.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 7, 2013
  • Latest release: Jul 28, 2013
  • Number of updates: 20
  • Update frequency: every 1.1 days
  • Top authors: yuka2py (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,907 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.12ms] Passed 4 tests

This is a short check of server-side resources used by WP Over Network
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0853.67 ▲8.75
Dashboard /wp-admin3.39 ▲0.0854.56 ▼0.88
Posts /wp-admin/edit.php3.50 ▲0.1452.83 ▲2.78
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.78 ▼8.97
Media Library /wp-admin/upload.php3.31 ▲0.0839.40 ▼1.41

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_wponw-reset-post-widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Over Network
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.182.05 ▲0.3741.43 ▼1.94
Dashboard /wp-admin2,198 ▲275.57 ▲0.0595.43 ▲6.3141.81 ▼5.53
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0136.44 ▲1.6336.17 ▼4.47
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.29637.69 ▼46.7955.32 ▼6.20
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.02101.90 ▼13.4347.28 ▼1.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_wponw-reset-post-widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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/wp-over-network/templates/archive-simple.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-over-network/templates/widget-form.php:2
    • > PHP Notice
      Undefined variable: posts in wp-content/plugins/wp-over-network/templates/archive-simple.php on line 4
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/wp-over-network/templates/archive-simple.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-over-network/wp-over-network.php:11
    • > PHP Notice
      Undefined variable: widget_title_id in wp-content/plugins/wp-over-network/templates/widget-form.php on line 2
    • > PHP Notice
      Undefined variable: posts in wp-content/plugins/wp-over-network/templates/widget.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-over-network/WPONW_RecentPostsWidget.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

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
Please fix the following attributes:
  • Donate link: Invalid URI found ("None currently.")
You can take inspiration from this readme.txt

wp-over-network/wp-over-network.php Passed 13 tests

The main PHP script in "WP Over Network" version 0.4.4 is automatically included on every request by WordPress
39 characters long description:
Utilities for network site on WordPress

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
No dangerous file extensions were detected487 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5112147444
PO File1162143

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity31.00
▷ Minimum class complexity19.00
▷ Maximum class complexity43.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods1571.43%
▷ Public methods1885.71%
▷ Protected methods00.00%
▷ Private methods314.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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 files were detected