89% post-meta-searcher

Code Review | Post Meta Searcher

WordPress plugin Post Meta Searcher scored89%from 54 tests.

About plugin

  • Plugin page: post-meta-searcher
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.7.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2013
  • Latest release: Dec 6, 2013
  • Number of updates: 41
  • Update frequency: every 3.3 days
  • Top authors: hello@lukerollans.me (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /3,939 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Post Meta Searcher
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.81 ▲1.10
Dashboard /wp-admin3.31 ▲0.0143.76 ▼4.46
Posts /wp-admin/edit.php3.36 ▲0.0146.44 ▲2.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.21 ▼16.72
Media Library /wp-admin/upload.php3.23 ▲0.0135.12 ▲3.81

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Post Meta Searcher
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5414.74 ▲0.371.82 ▲0.0339.47 ▼2.30
Dashboard /wp-admin2,206 ▲235.86 ▲0.9394.87 ▼15.0641.22 ▼0.72
Posts /wp-admin/edit.php2,089 ▲212.06 ▼0.0040.41 ▲5.1034.77 ▲1.49
Add New Post /wp-admin/post-new.php1,528 ▼018.48 ▼4.73617.73 ▼80.8257.58 ▲6.89
Media Library /wp-admin/upload.php1,382 ▼34.18 ▼0.0494.63 ▼8.1740.75 ▼1.60

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

Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Plugin does not have any screenshot references. Simply activate and it will work in the background!)
You can take inspiration from this readme.txt

post-meta-searcher/init.php 92% from 13 tests

The main PHP file in "Post Meta Searcher" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-meta-searcher.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116925

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected