84% tomi-menu

Code Review | Tomi Menu

WordPress plugin Tomi Menu scored84%from 54 tests.

About plugin

  • Plugin page: tomi-menu
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 13, 2015
  • Latest release: May 13, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: tomi33 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /919 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
Install script ran successfully

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

An overview of server-side resources used by Tomi Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.16 ▼6.80
Dashboard /wp-admin3.31 ▲0.0150.22 ▼0.18
Posts /wp-admin/edit.php3.36 ▲0.0148.08 ▼1.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.63 ▼8.44
Media Library /wp-admin/upload.php3.24 ▲0.0139.81 ▼0.74

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tomi Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.19 ▼1.171.71 ▼0.2043.46 ▼2.24
Dashboard /wp-admin2,206 ▲155.90 ▲0.9894.44 ▼10.5940.54 ▼2.48
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0038.58 ▲2.0938.85 ▲3.04
Add New Post /wp-admin/post-new.php1,546 ▲423.19 ▲5.29681.24 ▲27.8254.30 ▼16.11
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.08108.23 ▲9.7448.26 ▲2.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just 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_action() in wp-content/plugins/tomi-menu/tomi-menu.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: sub-menu, sub-nav, nav, navigation, automatic menu...

tomi-menu/tomi-menu.php Passed 13 tests

The main PHP file in "Tomi Menu" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
93 characters long description:
Automatically add AND remove sub pages from menus. Like WordPress can do with top level pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1152547

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.93
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin