83% orbisius-member-only-downloads-for-s2member

Code Review | Orbisius Member Only Downloads for S2Member

WordPress plugin Orbisius Member Only Downloads for S2Member scored83%from 54 tests.

About plugin

  • Plugin page: orbisius-member-o...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Jun 19, 2013
  • Latest release: Feb 1, 2015
  • Number of updates: 8
  • Update frequency: every 74.0 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.86ms] Passed 4 tests

This is a short check of server-side resources used by Orbisius Member Only Downloads for S2Member
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.10 ▼2.78
Dashboard /wp-admin3.31 ▼0.0353.66 ▼9.25
Posts /wp-admin/edit.php3.36 ▲0.0142.54 ▼1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.77 ▼9.71
Media Library /wp-admin/upload.php3.23 ▲0.0134.20 ▲2.14
Orbisius Member Only Downloads /wp-admin/options-general.php?page=orbisius-member-only-downloads-for-s2member/orbisius-s2member-only-downloads.php3.2029.54

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Orbisius Member Only Downloads for S2Member
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.35 ▼0.381.76 ▲0.0645.24 ▲2.14
Dashboard /wp-admin2,198 ▲185.56 ▼0.0981.55 ▼5.4538.32 ▼7.22
Posts /wp-admin/edit.php2,085 ▼152.01 ▲0.0334.87 ▲0.1037.28 ▲0.59
Add New Post /wp-admin/post-new.php1,533 ▲723.41 ▲0.71667.39 ▲2.7455.86 ▲2.47
Media Library /wp-admin/upload.php1,409 ▲94.19 ▲0.0198.03 ▼1.6143.14 ▼3.84
Orbisius Member Only Downloads /wp-admin/options-general.php?page=orbisius-member-only-downloads-for-s2member/orbisius-s2member-only-downloads.php9152.0322.8028.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-member-only-downloads-for-s2member/orbisius-s2member-only-downloads.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Plugin's settings page showing usage) image not found
The official readme.txt might help

orbisius-member-only-downloads-for-s2member/orbisius-s2member-only-downloads.php 85% from 13 tests

The main PHP file in "Orbisius Member Only Downloads for S2Member" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("orbisius-member-only-downloads-for-s2member.php" instead of "orbisius-s2member-only-downloads.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected388 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP177117286
CSS116376
XML20026

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.00
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
3 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
i/guNzr.qr.2.png0.23KB0.23KB0.43%
i/guNzr.qr.16.png0.39KB0.41KB0.00%
screenshot-1.png96.83KB34.06KB▼ 64.82%