84% stop-query-posts

Code Review | Stop query_posts

WordPress plugin Stop query_posts scored84%from 54 tests.

About plugin

  • Plugin page: stop-query-posts
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: Jul 4, 2013
  • Latest release: Jul 4, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: kovshenin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /829 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.43ms] Passed 4 tests

Analyzing server-side resources used by Stop query_posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0043.34 ▲3.52
Dashboard /wp-admin3.35 ▲0.0155.61 ▲3.60
Posts /wp-admin/edit.php3.40 ▲0.0052.79 ▲3.30
Add New Post /wp-admin/post-new.php5.93 ▲0.0086.23 ▼9.69
Media Library /wp-admin/upload.php3.27 ▲0.0035.00 ▼2.83

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Stop query_posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▲0.061.62 ▼0.2839.33 ▼4.99
Dashboard /wp-admin2,198 ▲215.61 ▼0.1186.27 ▼3.8035.57 ▼9.10
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0238.90 ▲0.0335.23 ▼2.49
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.47670.69 ▲10.1166.44 ▲15.72
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.0298.11 ▼3.4943.48 ▼6.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stop-query-posts/stop-query-posts.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
2 plugin tags: posts, query

stop-query-posts/stop-query-posts.php Passed 13 tests

The principal PHP file in "Stop query_posts" v. 0.9 is loaded by WordPress automatically on each request
81 characters long description:
This plugin calls _doing_it_wrong() whenever any theme or plugin uses query_posts

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
No dangerous file extensions were detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1186

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 code1.00
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin