10% wp-netscope

Code Review | WP Netscope

WordPress plugin WP Netscope scored10%from 54 tests.

About plugin

  • Plugin page: wp-netscope
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Jul 17, 2013
  • Latest release: Jul 17, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: nunomorgadinho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /650 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-netscope/wp-netscope.php+18
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_netscope has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼55.14ms] Passed 4 tests

An overview of server-side resources used by WP Netscope
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.384.20 ▼35.69
Dashboard /wp-admin2.09 ▼1.215.43 ▼47.77
Posts /wp-admin/edit.php2.10 ▼1.267.85 ▼42.02
Add New Post /wp-admin/post-new.php2.09 ▼3.795.23 ▼95.06
Media Library /wp-admin/upload.php2.09 ▼1.135.25 ▼31.34
WP Netscope /wp-admin/options-general.php?page=wp_netscope2.105.45

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: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

WP Netscope: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.25 ▼1.341.88 ▼0.0639.67 ▼5.49
Dashboard /wp-admin2,210 ▲225.91 ▲1.03111.54 ▼2.6643.12 ▼1.88
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0639.51 ▲2.1836.05 ▲0.44
Add New Post /wp-admin/post-new.php1,527 ▲823.23 ▲0.07685.46 ▲38.4066.66 ▲9.15
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.02103.66 ▲4.9243.40 ▼0.60
WP Netscope /wp-admin/options-general.php?page=wp_netscope7862.0627.7732.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/wp-netscope/wp-netscope.php+18
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_netscope has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_netscope
    • > Deprecated in wp-content/plugins/wp-netscope/wp-netscope.php+18
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_netscope has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=wp_netscope
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp_netscope
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp_netscope
    • > Notice in wp-content/plugins/wp-netscope/wp-netscope.php+117
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-netscope/wp-netscope.php:34

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-netscope === )
You can look at the official readme.txt

wp-netscope/wp-netscope.php Passed 13 tests

The entry point to "WP Netscope" version 1.0 is a PHP file that has certain tags in its header comment area
104 characters long description:
Netscope is a web-based analytics suite. This plugin installs the necessary tags on your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1395693

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin