100% advanced-post-queries

Code Review | Advanced Post Queries

WordPress plugin Advanced Post Queries scored 100% from 54 tests.

About plugin

  • Plugin page: advanced-post-que...
  • Plugin version: 1.0.15
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.1
  • WordPress version: 5.9.2
  • First release: Dec 6, 2019
  • Latest release: Mar 10, 2022
  • Number of updates: 48
  • Update frequency: every 17.2 days
  • Top authors: shabti (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

10,000+ active / 30,875 total downloads

Benchmarks

Plugin footprint Passed 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 successfully, without throwing any errors or notices

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

An overview of server-side resources used by Advanced Post Queries
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0357.34 ▼3.72
Dashboard /wp-admin3.43 ▲0.0241.16 ▲1.71
Posts /wp-admin/edit.php3.67 ▲0.0241.83 ▼2.57
Add New Post /wp-admin/post-new.php6.90 ▼0.0795.28 ▼1,269.72
Media Library /wp-admin/upload.php3.32 ▲0.0226.46 ▼2.02

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Post Queries
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲6615.26 ▼0.356.69 ▲0.772.16 ▼0.05
Dashboard /wp-admin2,909 ▲486.02 ▼0.15122.71 ▼29.26153.50 ▼11.87
Posts /wp-admin/edit.php2,710 ▲223.25 ▲0.0262.90 ▲1.22135.30 ▼44.48
Add New Post /wp-admin/post-new.php1,678 ▲1715.98 ▼1.24433.18 ▲24.38167.07 ▲7.89
Media Library /wp-admin/upload.php1,719 ▲215.50 ▲0.01144.83 ▲0.27183.83 ▼3.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: dynamic query, posts, elementor, dynamic queries, advanced query...

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

"Advanced Post Queries" version 1.0.15's main PHP file describes plugin functionality and also serves as the entry point to any WordPress 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin712 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4147159712

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity20.00
▷ Minimum class complexity3.00
▷ Maximum class complexity47.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods19
▷ Static methods421.05%
▷ Public methods19100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin