83% unlimited

Code Review | Unlimited

WordPress plugin Unlimited scored83%from 54 tests.

About plugin

  • Plugin page: unlimited
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3.1
  • WordPress version: 6.3.1
  • First release: Jan 31, 2015
  • Latest release: Oct 6, 2015
  • Number of updates: 29
  • Update frequency: every 8.6 days
  • Top authors: plugin.builders (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /3,525 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
This plugin's installer ran successfully

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

Server-side resources used by Unlimited
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0130.79 ▼13.68
Dashboard /wp-admin3.60 ▼0.0351.52 ▼12.26
Posts /wp-admin/edit.php3.71 ▲0.0349.65 ▼6.23
Add New Post /wp-admin/post-new.php6.18 ▲0.0389.51 ▼25.73
Media Library /wp-admin/upload.php3.52 ▲0.0339.80 ▼2.98
Unlimited /wp-admin/options-general.php?page=unlimited3.5435.27

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Unlimited
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14313.37 ▼0.958.38 ▲6.3343.46 ▲1.58
Dashboard /wp-admin2,199 ▲225.68 ▼0.0185.54 ▼6.6039.41 ▼2.22
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.1635.61 ▼1.9137.75 ▲5.39
Add New Post /wp-admin/post-new.php1,529 ▼217.76 ▼5.27648.33 ▼44.2853.37 ▼6.15
Media Library /wp-admin/upload.php1,404 ▲74.25 ▲0.01101.09 ▼6.4842.30 ▼2.71
Unlimited /wp-admin/options-general.php?page=unlimited1,2352.1329.2134.53

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/unlimited/templates/templates.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited/unlimited.php:19

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 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add a description for screenshot #2 in unlimited/assets to your readme.txt
You can take inspiration from this readme.txt

unlimited/unlimited.php 85% from 13 tests

"Unlimited" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,003 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2501403
PHP23218329
CSS2394157
PO File14950114

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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