84% tab-me

Code Review | TAB ME

WordPress plugin TAB ME scored84%from 54 tests.

About plugin

  • Plugin page: tab-me
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jul 22, 2013
  • Latest release: Nov 17, 2013
  • Number of updates: 5
  • Update frequency: every 23.6 days
  • Top authors: MicahBlu (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /9,403 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
Installer ran successfully

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

A check of server-side resources used by TAB ME
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0198.27 ▲33.86
Dashboard /wp-admin3.32 ▲0.01150.32 ▲53.59
Posts /wp-admin/edit.php3.37 ▲0.01133.65 ▲40.03
Add New Post /wp-admin/post-new.php5.90 ▲0.01237.91 ▲78.13
Media Library /wp-admin/upload.php3.24 ▲0.01153.68 ▲93.28

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for TAB ME
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲20113.50 ▼0.7923.04 ▲20.05111.85 ▲44.63
Dashboard /wp-admin2,203 ▲214.91 ▲0.03359.90 ▲153.75119.73 ▲30.89
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0496.75 ▲24.7984.91 ▲2.19
Add New Post /wp-admin/post-new.php1,361 ▲216.82 ▼1.011,381.88 ▲410.30102.16 ▲13.87
Media Library /wp-admin/upload.php1,391 ▲64.15 ▼0.14192.94 ▲11.35102.86 ▲1.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tab-me/tab-me.php:31

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (This is what the final product looks like: screenshot-1.png), #2 (Here's an example of the shortcode used to make the show screenshot: screenshot-2.png)
The official readme.txt is a good inspiration

tab-me/tab-me.php Passed 13 tests

"TAB ME" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
48 characters long description:
Provides a shortcode which allows tabbed content

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected94 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1152742
CSS19738
JavaScript18714

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png76.07KB25.97KB▼ 65.86%
screenshot-2.png149.52KB49.88KB▼ 66.64%