84% select-all-posts

Code Review | Select All Posts

WordPress plugin Select All Posts scored84%from 54 tests.

About plugin

  • Plugin page: select-all-posts
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 15, 2020
  • Latest release: Sep 15, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: inonkp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /570 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.57ms] Passed 4 tests

This is a short check of server-side resources used by Select All Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.53 ▼4.40
Dashboard /wp-admin3.35 ▲0.0552.20 ▲1.46
Posts /wp-admin/edit.php3.47 ▲0.1155.62 ▲5.54
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.34 ▼15.84
Media Library /wp-admin/upload.php3.27 ▲0.0539.03 ▲4.49

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Select All Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲13713.89 ▼0.298.48 ▲6.8045.57 ▲4.52
Dashboard /wp-admin2,209 ▲245.85 ▼0.02111.97 ▲2.7642.55 ▲4.19
Posts /wp-admin/edit.php2,101 ▲92.06 ▲0.0635.16 ▼9.0132.91 ▼6.22
Add New Post /wp-admin/post-new.php1,542 ▼118.51 ▲0.14657.51 ▲0.9156.05 ▲4.35
Media Library /wp-admin/upload.php1,388 ▼34.28 ▲0.10104.29 ▲4.0246.72 ▲2.47

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/select-all-posts/public/partials/select-all-posts-public-display.php
    • > /wp-content/plugins/select-all-posts/admin/partials/select-all-posts-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
5 plugin tags: posts, bulk, pages, woocommerce, products

select-all-posts/select-all-posts.php Passed 13 tests

The main file in "Select All Posts" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin216 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12124536191
JavaScript282725
CSS2080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.14
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin