78% stats4editors

Code Review | Starts for editors

WordPress plugin Starts for editors scored 78% from 54 tests.

About plugin

  • Plugin page: stats4editors
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.2
  • WordPress version: 5.8.1
  • First release: Jul 23, 2013
  • Latest release: Jul 24, 2013
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: Scott Herbert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 558 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼142.82ms] Passed 4 tests

Server-side resources used by Starts for editors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0347.11 ▲12.03
Dashboard /wp-admin3.09 ▲0.0348.59 ▲1.01
Posts /wp-admin/edit.php3.18 ▲0.0749.20 ▼0.03
Add New Post /wp-admin/post-new.php5.45 ▲0.0198.46 ▼575.97
Media Library /wp-admin/upload.php3.03 ▲0.0337.09 ▲3.73

Server storage [IO: ▲0.01MB] [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: 3 new files
Database: 1 new table, no new options
New tables
wp_SWS_Visitor_count

Browser metrics Passed 4 tests

A check of browser resources used by Starts for editors
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,019 ▲42320.55 ▲4.7319.69 ▲12.3560.57 ▲8.54
Dashboard /wp-admin3,121 ▲1848.12 ▲1.97159.94 ▲5.59130.60 ▲15.28
Posts /wp-admin/edit.php2,887 ▲1485.06 ▲2.3782.42 ▲6.6998.98 ▲1.18
Add New Post /wp-admin/post-new.php4,071 ▲2,38819.43 ▲0.69497.49 ▲102.38120.83 ▲1.02
Media Library /wp-admin/upload.php1,955 ▲1487.73 ▲2.73180.20 ▼1.45135.79 ▲12.16

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
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_SWS_Visitor_count

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/stats4editors/chart.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/stats4editors/Stats4Editors.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/stats4editors/Stats4Editors.php:64
    • > PHP Notice
      Undefined index: Other in wp-content/plugins/stats4editors/chart.php on line 42
    • > PHP Notice
      Undefined index: bots in wp-content/plugins/stats4editors/chart.php on line 40
    • > PHP Notice
      Undefined index: Chrome in wp-content/plugins/stats4editors/chart.php on line 36
    • > PHP Notice
      Undefined index: IE in wp-content/plugins/stats4editors/chart.php on line 34
    • > PHP Notice
      Undefined index: FF in wp-content/plugins/stats4editors/chart.php on line 38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (To follow (when I write a post about it).)
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

stats4editors/Stats4Editors.php 92% from 13 tests

Analyzing the main PHP file in "Starts for editors" version 0.3
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("stats4editors.php" instead of "Stats4Editors.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin201 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24845201

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin