84% wp-simple-thimble

Code Review | WP Simple Thimble

WordPress plugin WP Simple Thimble scored84%from 54 tests.

About plugin

  • Plugin page: wp-simple-thimble
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 20, 2016
  • Latest release: Jul 20, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: aadel112 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /3,951 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.34MB] [CPU: ▼27.78ms] Passed 4 tests

Server-side resources used by WP Simple Thimble
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0325.98 ▼16.29
Dashboard /wp-admin3.22 ▼0.1228.91 ▼28.51
Posts /wp-admin/edit.php3.51 ▲0.1146.53 ▼7.19
Add New Post /wp-admin/post-new.php4.69 ▼1.2444.54 ▼59.12
Media Library /wp-admin/upload.php3.23 ▼0.0430.52 ▼5.22

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

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

Browser metrics Passed 4 tests

WP Simple Thimble: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,778 ▲3214.32 ▲0.031.79 ▲0.2236.90 ▼3.73
Dashboard /wp-admin2,189 ▲85.59 ▼0.1289.20 ▼13.2438.70 ▼4.28
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0139.58 ▲0.3035.89 ▼1.46
Add New Post /wp-admin/post-new.php1,550 ▲2222.30 ▼0.74648.06 ▼28.9634.56 ▼14.57
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0496.96 ▼7.2546.04 ▼2.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-simple-thimble/wp-simple-thimble.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: speed, eliminate yslow warnings, data-uri, eliminate gtmetrix warnings, page load

wp-simple-thimble/wp-simple-thimble.php 92% from 13 tests

Analyzing the main PHP file in "WP Simple Thimble" version 0.0.1
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 435 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin309 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25953296
Markdown16013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods1456.00%
▷ Public methods1560.00%
▷ Protected methods1040.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin