84% more-subscribers

Code Review | More Subscribers

WordPress plugin More Subscribers scored 84% from 54 tests.

About plugin

  • Plugin page: more-subscribers
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2015
  • Latest release: Oct 7, 2016
  • Number of updates: 40
  • Update frequency: every 10.5 days
  • Top authors: mdarmanin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,830 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.43ms] Passed 4 tests

Server-side resources used by More Subscribers
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.96 ▼3.74
Dashboard /wp-admin3.33 ▲0.0246.92 ▼0.47
Posts /wp-admin/edit.php3.38 ▲0.0247.46 ▲2.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.68 ▼16.27
Media Library /wp-admin/upload.php3.25 ▲0.0233.88 ▼1.25

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_ms_id
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for More Subscribers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲17613.57 ▼0.855.72 ▲4.0543.61 ▼0.06
Dashboard /wp-admin2,203 ▲155.78 ▼0.0798.77 ▼7.8039.16 ▼4.65
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0436.62 ▲1.4830.40 ▼2.86
Add New Post /wp-admin/post-new.php1,537 ▲923.41 ▲5.00633.37 ▲13.3847.62 ▼10.24
Media Library /wp-admin/upload.php1,388 ▲34.23 ▼0.0295.23 ▼10.5843.54 ▼1.56

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • widget_ms_id

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 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/more-subscribers/index.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (How the widget looks in my dev.)
Please take inspiration from this readme.txt

more-subscribers/index.php 92% from 13 tests

This is the main PHP file of "More Subscribers" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("more-subscribers.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected108 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1132463
JavaScript14231
CSS13014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin