83% get-page-ids

Code Review | Get page IDs

WordPress plugin Get page IDs scored83%from 54 tests.

About plugin

  • Plugin page: get-page-ids
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Oct 15, 2012
  • Latest release: Jul 7, 2017
  • Number of updates: 11
  • Update frequency: every 156.9 days
  • Top authors: iamntz (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /15,206 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
Install script ran successfully

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

This is a short check of server-side resources used by Get page IDs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.79 ▼0.98
Dashboard /wp-admin3.31 ▼0.0447.40 ▼17.05
Posts /wp-admin/edit.php3.36 ▲0.0049.40 ▼2.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.27 ▼25.29
Media Library /wp-admin/upload.php3.23 ▲0.0035.40 ▼3.26
Get Page IDs /wp-admin/tools.php?page=ntz-get-page-ids3.2133.84

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Get page IDs: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.62 ▲0.051.93 ▲0.2651.06 ▲4.95
Dashboard /wp-admin2,202 ▲255.70 ▲0.1183.09 ▼18.0037.94 ▼6.23
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0739.76 ▲3.4236.07 ▼0.49
Add New Post /wp-admin/post-new.php1,531 ▲523.09 ▲0.07669.79 ▼18.1152.27 ▼3.21
Media Library /wp-admin/upload.php1,404 ▲44.24 ▲0.0394.97 ▼17.1245.54 ▼6.64
Get Page IDs /wp-admin/tools.php?page=ntz-get-page-ids7902.0424.2526.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-page-ids/get_page_ids.php:13

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 90% 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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Sample page) image required
You can look at the official readme.txt

get-page-ids/get_page_ids.php 85% from 13 tests

"Get page IDs" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 181 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("get-page-ids.php" instead of "get_page_ids.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected77 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113977

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 code0.30
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png40.03KB11.01KB▼ 72.49%