84% view-all-posts-pages

Code Review | View All Post's Pages

WordPress plugin View All Post's Pages scored84%from 54 tests.

About plugin

  • Plugin page: view-all-posts-pages
  • Plugin version: 0.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-6.0
  • WordPress version: 6.3.1
  • First release: Sep 4, 2011
  • Latest release: Jun 26, 2022
  • Number of updates: 37
  • Update frequency: every 106.7 days
  • Top authors: ethitter (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /15,671 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.48ms] Passed 4 tests

Analyzing server-side resources used by View All Post's Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.53 ▼6.24
Dashboard /wp-admin3.42 ▲0.1161.58 ▲9.51
Posts /wp-admin/edit.php3.53 ▲0.1751.85 ▲3.95
Add New Post /wp-admin/post-new.php6.00 ▲0.1182.70 ▼6.94
Media Library /wp-admin/upload.php3.34 ▲0.1138.70 ▼0.70
View All Post's Pages /wp-admin/options-general.php?page=view_all_posts_pages3.3032.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for View All Post's Pages
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.75 ▲0.461.82 ▼0.1640.41 ▼5.44
Dashboard /wp-admin2,222 ▲425.88 ▲0.20106.19 ▲7.3147.85 ▲3.35
Posts /wp-admin/edit.php2,134 ▲342.13 ▲0.1543.46 ▲4.0342.49 ▲3.10
Add New Post /wp-admin/post-new.php1,583 ▲4318.53 ▼4.51631.02 ▼32.6054.00 ▲0.91
Media Library /wp-admin/upload.php1,424 ▲274.22 ▲0.07103.20 ▼8.5246.07 ▼0.01
View All Post's Pages /wp-admin/options-general.php?page=view_all_posts_pages1,0582.0533.2843.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/view-all-posts-pages/view-all-posts-pages.php:105

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

view-all-posts-pages/view-all-posts-pages.php 92% from 13 tests

This is the main PHP file of "View All Post's Pages" version 0.9.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 255 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin427 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1117300427

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.40
Average class complexity77.00
▷ Minimum class complexity77.00
▷ Maximum class complexity77.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods1680.00%
▷ Protected methods00.00%
▷ Private methods420.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin