84% plugin-memorandum

Code Review | Plugin Memorandum

WordPress plugin Plugin Memorandum scored84%from 54 tests.

About plugin

  • Plugin page: plugin-memorandum
  • Plugin version: 0.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-3.6
  • WordPress version: 6.3.1
  • First release: Feb 1, 2012
  • Latest release: Aug 6, 2013
  • Number of updates: 11
  • Update frequency: every 50.3 days
  • Top authors: jim912 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

300+ active /5,501 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.03MB] [CPU: ▼2.01ms] Passed 4 tests

A check of server-side resources used by Plugin Memorandum
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.29 ▼2.26
Dashboard /wp-admin3.34 ▲0.0343.82 ▼4.73
Posts /wp-admin/edit.php3.39 ▲0.0344.30 ▼2.26
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.51 ▲1.81
Media Library /wp-admin/upload.php3.26 ▲0.0335.04 ▲1.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Memorandum
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.23 ▼0.131.51 ▼0.3436.38 ▼0.58
Dashboard /wp-admin2,195 ▲175.61 ▼0.1288.41 ▼11.0742.61 ▼1.44
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0338.80 ▼3.5135.79 ▼2.29
Add New Post /wp-admin/post-new.php1,535 ▲418.56 ▼4.78611.15 ▼48.3069.94 ▲13.76
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.2295.16 ▼3.9241.79 ▼1.21

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plugin-memorandum/plugin-memorandum.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: plugin, memo, notes

plugin-memorandum/plugin-memorandum.php Passed 13 tests

"Plugin Memorandum" version 0.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
Plugin Memorandum makes you can write memo or notes for each plugin in the Plugins page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected185 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22674123
JavaScript21829
PO File14319
CSS13014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/switch-close.png1.09KB0.24KB▼ 78.41%
images/switch-open.png1.15KB0.29KB▼ 74.77%
images/commented-switch-close.png1.12KB0.26KB▼ 76.33%
images/commented-switch-open.png1.17KB0.31KB▼ 73.46%