90% wp-posts-table

Code Review | WP Posts Table

WordPress plugin WP Posts Table scored90%from 54 tests.

About plugin

  • Plugin page: wp-posts-table
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4.2
  • WordPress version: 6.3.1
  • First release: Feb 19, 2019
  • Latest release: Jun 11, 2020
  • Number of updates: 4
  • Update frequency: every 120.7 days
  • Top authors: presscargo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,300 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.09MB] [CPU: ▼14.92ms] Passed 4 tests

A check of server-side resources used by WP Posts Table
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.89 ▼0.5817.67 ▼27.91
Dashboard /wp-admin3.38 ▲0.0749.83 ▼7.33
Posts /wp-admin/edit.php3.49 ▲0.1347.52 ▲1.04
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.47 ▼25.48
Media Library /wp-admin/upload.php3.30 ▲0.0737.82 ▲2.35
WP Posts Table /wp-admin/options-general.php?page=wppt-settings3.2632.99

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Posts Table
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.18 ▼1.201.58 ▼0.2342.33 ▼3.40
Dashboard /wp-admin2,207 ▲225.85 ▲0.98100.95 ▼2.9242.74 ▲0.57
Posts /wp-admin/edit.php2,090 ▲42.01 ▼0.0438.34 ▲2.4737.86 ▼0.69
Add New Post /wp-admin/post-new.php1,536 ▲2223.18 ▲5.69658.69 ▼75.5054.26 ▼3.19
Media Library /wp-admin/upload.php1,386 ▼24.20 ▲0.0494.72 ▼14.7042.11 ▼4.56
WP Posts Table /wp-admin/options-general.php?page=wppt-settings8032.0325.5629.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 97% 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:
  • Screenshots: These screenshots do not have images: #1 (Default view), #2 (Collapsible columns), #3 (Search and highlight)
The official readme.txt might help

wp-posts-table/wp-posts-table.php Passed 13 tests

"WP Posts Table" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
Display your posts in a table format that is searchable and sortable.

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
Success! There were no dangerous files found in this plugin9,575 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
JSON3006,513
JavaScript17165471,110
CSS11157203857
Sass71463751
PHP486341273
SVG71237
HTML30034

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.25
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods34
▷ Static methods38.82%
▷ Public methods2882.35%
▷ Protected methods00.00%
▷ Private methods617.65%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png105.68KB41.30KB▼ 60.92%
screenshot-1.png97.50KB38.56KB▼ 60.45%
screenshot-2.png72.65KB28.27KB▼ 61.09%