88% er-sourceforge-stats

Code Review | ER SourceForge Stats

WordPress plugin ER SourceForge Stats scored 88% from 54 tests.

About plugin

  • Plugin page: er-sourceforge-stats
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.5.1
  • WordPress version: 5.8.1
  • First release: Apr 4, 2013
  • Latest release: Apr 4, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: erithq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 621 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼138.98ms] Passed 4 tests

A check of server-side resources used by ER SourceForge Stats
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.91 ▲13.94
Dashboard /wp-admin3.07 ▲0.0245.09 ▼1.76
Posts /wp-admin/edit.php3.13 ▲0.0244.48 ▲8.82
Add New Post /wp-admin/post-new.php5.43 ▼0.0085.43 ▼562.84
Media Library /wp-admin/upload.php3.02 ▲0.0232.66 ▼0.12
ER SourceForge Stats /wp-admin/options-general.php?page=er-source-forge-stats2.9927.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ER SourceForge Stats
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.95 ▲0.429.46 ▼0.3147.47 ▼1.96
Dashboard /wp-admin2,978 ▲475.87 ▼0.14136.51 ▼3.59110.02 ▲0.06
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0067.10 ▲5.5691.90 ▼4.17
Add New Post /wp-admin/post-new.php1,618 ▲12021.83 ▲3.01284.15 ▼83.93105.62 ▼4.72
Media Library /wp-admin/upload.php1,815 ▲55.06 ▲0.05155.28 ▲7.89120.30 ▲2.37
ER SourceForge Stats /wp-admin/options-general.php?page=er-source-forge-stats1,1062.0560.6569.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/er-sourceforge-stats/howto.php
  • 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/er-sourceforge-stats/er-sourceforge-stats.php:34

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)
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === er-sourceforge-stats === )
The official readme.txt is a good inspiration

er-sourceforge-stats/er-sourceforge-stats.php Passed 13 tests

The main PHP script in "ER SourceForge Stats" version 1.0.0 is automatically included on every request by WordPress
114 characters long description:
ER SourceForge Stats allows you to insert SourceForge download statistics into your page using a simple shortcode.

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
Everything looks great! No dangerous files found in this plugin87 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin