90% advanced-post-queries

Code Review | Advanced Queries

WordPress plugin Advanced Queries scored90%from 54 tests.

About plugin

  • Plugin page: advanced-post-que...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2019
  • Latest release: May 17, 2023
  • Number of updates: 60
  • Update frequency: every 21.0 days
  • Top authors: shabti (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

10,000+ active /76,188 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.52ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Queries
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.38 ▲1.11
Dashboard /wp-admin3.33 ▲0.0239.89 ▼9.69
Posts /wp-admin/edit.php3.38 ▲0.0244.56 ▼2.31
Add New Post /wp-admin/post-new.php5.91 ▲0.0274.71 ▼19.49
Media Library /wp-admin/upload.php3.25 ▲0.0230.91 ▼2.57

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

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

Browser metrics Passed 4 tests

Advanced Queries: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.55 ▼0.911.65 ▼0.0843.18 ▼2.94
Dashboard /wp-admin2,224 ▲395.90 ▲0.11108.98 ▲8.8436.33 ▼2.30
Posts /wp-admin/edit.php2,109 ▲232.05 ▲0.0235.77 ▼1.1931.06 ▼1.87
Add New Post /wp-admin/post-new.php1,546 ▲1323.31 ▲0.07671.55 ▼6.3358.14 ▲11.45
Media Library /wp-admin/upload.php1,409 ▲214.24 ▲0.0194.95 ▼0.9040.62 ▼3.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: advanced queries, elementor, posts, advanced query, dynamic queries...

advanced-post-queries/advanced-post-queries.php Passed 13 tests

The primary PHP file in "Advanced Queries" version 1.1.1 is used by WordPress to initiate all plugin functionality
96 characters long description:
An Elementor extension that gives you more options for quering your posts widget without coding.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin684 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3136133684

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity29.00
▷ Minimum class complexity10.00
▷ Maximum class complexity48.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin