90% weedmaps-menu-embed

Code Review | WeedMaps Menu for WordPress

WordPress plugin WeedMaps Menu for WordPress scored90%from 54 tests.

About plugin

  • Plugin page: weedmaps-menu-embed
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Sep 24, 2014
  • Latest release: Nov 13, 2015
  • Number of updates: 5
  • Update frequency: every 83.0 days
  • Top authors: bmoredrew (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /2,899 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by WeedMaps Menu for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.79 ▼4.54
Dashboard /wp-admin3.31 ▼0.0450.45 ▼20.54
Posts /wp-admin/edit.php3.36 ▲0.0045.28 ▼4.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0083.79 ▼9.57
Media Library /wp-admin/upload.php3.24 ▲0.0035.91 ▲3.25

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WeedMaps Menu for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.071.93 ▲0.0644.32 ▼3.72
Dashboard /wp-admin2,195 ▲215.52 ▼0.1089.03 ▼5.4739.81 ▼1.48
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0135.51 ▼3.5736.94 ▲0.88
Add New Post /wp-admin/post-new.php1,526 ▼023.49 ▼0.22700.72 ▲66.4453.56 ▼0.40
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0095.85 ▼12.8240.74 ▼2.66

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: weedmaps, menu

weedmaps-menu-embed/weedmaps-menu-wordpress.php 92% from 13 tests

"WeedMaps Menu for WordPress" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("weedmaps-menu-embed.php" instead of "weedmaps-menu-wordpress.php")

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
Success! There were no dangerous files found in this plugin22 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP162215
Markdown1307

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin