90% master-ids

Code Review | Master IDs

WordPress plugin Master IDs scored90%from 54 tests.

About plugin

  • Plugin page: master-ids
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: May 17, 2014
  • Latest release: Nov 5, 2016
  • Number of updates: 3
  • Update frequency: every 301.7 days
  • Top authors: maurolopes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /969 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.52ms] Passed 4 tests

This is a short check of server-side resources used by Master IDs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.17 ▲1.47
Dashboard /wp-admin3.35 ▲0.0444.76 ▼3.59
Posts /wp-admin/edit.php3.40 ▲0.0446.74 ▼3.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.76 ▼16.75
Media Library /wp-admin/upload.php3.27 ▲0.0437.49 ▲4.55
Master IDs /wp-admin/options-general.php?page=master-ids3.2528.69

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Master IDs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▼0.131.83 ▼0.0542.47 ▼0.32
Dashboard /wp-admin2,210 ▲284.80 ▼1.02111.68 ▲4.6045.80 ▲3.77
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0239.67 ▼0.7635.71 ▼1.11
Add New Post /wp-admin/post-new.php1,537 ▼023.19 ▲4.98640.83 ▲21.0550.69 ▼13.69
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.0596.56 ▼1.6342.47 ▼1.61
Master IDs /wp-admin/options-general.php?page=master-ids8152.0228.6427.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Choose a Post Type), #2 (Find the respective posts titles and IDs)
You can take inspiration from this readme.txt

master-ids/master-ids.php Passed 13 tests

"Master IDs" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
Easily find the ID for a page, post or custom post type.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin182 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP377138129
PO File1174053

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods327.27%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
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
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png39.00KB12.04KB▼ 69.12%
screenshot-2.png76.80KB24.62KB▼ 67.94%