84% wpnetscope

Code Review | netScope

WordPress plugin netScope scored84%from 54 tests.

About plugin

  • Plugin page: wpnetscope
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2016
  • Latest release: Feb 23, 2019
  • Number of updates: 17
  • Update frequency: every 55.5 days
  • Top authors: s3rgiosan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,005 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
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.16ms] Passed 4 tests

A check of server-side resources used by netScope
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1548.80 ▲6.42
Dashboard /wp-admin3.45 ▲0.1546.55 ▼4.46
Posts /wp-admin/edit.php3.57 ▲0.2145.84 ▼7.89
Add New Post /wp-admin/post-new.php6.04 ▲0.1585.15 ▼8.63
Media Library /wp-admin/upload.php3.38 ▲0.1539.47 ▲4.35
netScope /wp-admin/options-general.php?page=netscope3.3432.27

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 122 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

netScope: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲13314.53 ▲0.1427.37 ▲25.5439.95 ▼0.02
Dashboard /wp-admin2,207 ▲195.82 ▼0.1196.98 ▼15.1649.96 ▲5.48
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0033.61 ▼6.9634.48 ▼0.72
Add New Post /wp-admin/post-new.php6,238 ▲4,72426.07 ▲8.53917.23 ▲239.8861.76 ▼6.72
Media Library /wp-admin/upload.php1,392 ▲14.15 ▼0.0694.47 ▼4.3441.89 ▼2.76
netScope /wp-admin/options-general.php?page=netscope7742.0924.8224.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
  • 90× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpnetscope/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpnetscope/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpnetscope/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpnetscope/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpnetscope/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpnetscope/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpnetscope/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpnetscope/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpnetscope/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpnetscope/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php:4

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: audience, analytics, tags, netscope

wpnetscope/wpnetscope.php Passed 13 tests

The main file in "netScope" v. 1.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Easy integration of netScope into your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,489 lines of code in 114 files:
LanguageFilesBlank linesComment linesLines of code
PHP1075359342,789
JSON4001,539
Bourne Shell12111123
Markdown111022
XML15216

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity3.11
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes99
▷ Abstract classes11.01%
▷ Concrete classes9898.99%
▷ Final classes00.00%
Methods146
▷ Static methods42.74%
▷ Public methods10269.86%
▷ Protected methods3121.23%
▷ Private methods138.90%
Functions9
▷ Named functions222.22%
▷ Anonymous functions777.78%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin