84% tb-enumerate

Code Review | tb-enumerate

WordPress plugin tb-enumerate scored84%from 54 tests.

About plugin

  • Plugin page: tb-enumerate
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2013
  • Latest release: Jun 23, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: bazzanella (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /569 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.93ms] Passed 4 tests

Analyzing server-side resources used by tb-enumerate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0535.02 ▼6.46
Dashboard /wp-admin3.36 ▲0.0146.46 ▼12.96
Posts /wp-admin/edit.php3.41 ▲0.0541.71 ▼4.10
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.25 ▼12.18
Media Library /wp-admin/upload.php3.28 ▲0.0538.99 ▲3.84

Server storage [IO: ▲0.02MB] [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
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for tb-enumerate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.031.54 ▼0.3140.95 ▼4.49
Dashboard /wp-admin2,195 ▲155.63 ▼0.0382.66 ▼11.1539.02 ▼2.46
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0336.47 ▲0.5134.14 ▲0.57
Add New Post /wp-admin/post-new.php1,528 ▼023.24 ▲0.29622.94 ▼2.9292.80 ▲14.91
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.10101.62 ▼0.7344.33 ▼7.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/tb-enumerate/tb-enumerate.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (no first screenshot), #2 (no second screenshot)
The official readme.txt is a good inspiration

tb-enumerate/tb-enumerate.php Passed 13 tests

Analyzing the main PHP file in "tb-enumerate" version 0.1.0
64 characters long description:
Learn the numbering system by position. Shortcode: [tbenumerate]

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 plugin343 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP54624260
PO File134083

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity9.67
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected