84% simple-post-lists

Code Review | Simple Post Lists

WordPress plugin Simple Post Lists scored 84% from 54 tests.

About plugin

  • Plugin page: simple-post-lists
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 10, 2017
  • Latest release: Jun 10, 2017
  • Number of updates: 7
  • Update frequency: every 1.6 days
  • Top authors: andrewoons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 773 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
Installer ran successfully

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

An overview of server-side resources used by Simple Post Lists
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.96 ▲2.92
Dashboard /wp-admin3.31 ▲0.0148.24 ▲1.05
Posts /wp-admin/edit.php3.36 ▲0.0153.04 ▲7.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.02 ▼21.67
Media Library /wp-admin/upload.php3.23 ▲0.0040.37 ▲7.27

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

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

Browser metrics Passed 4 tests

Simple Post Lists: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.361.82 ▲0.0742.42 ▼5.25
Dashboard /wp-admin2,206 ▲184.89 ▼0.23103.36 ▼4.8642.79 ▲5.47
Posts /wp-admin/edit.php2,086 ▼62.03 ▼0.0337.68 ▼3.4831.80 ▼3.87
Add New Post /wp-admin/post-new.php1,536 ▼623.32 ▲4.71687.04 ▲35.7550.08 ▼7.54
Media Library /wp-admin/upload.php1,385 ▼64.11 ▼0.00115.08 ▲9.5247.30 ▲2.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-post-lists/simple-post-lists.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: posts, lists, overview

simple-post-lists/simple-post-lists.php Passed 13 tests

The main PHP script in "Simple Post Lists" version 1.0 is automatically included on every request by WordPress
74 characters long description:
Wordpress plugin that generates a really simple post list, divided by year

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
Everything looks great! No dangerous files found in this plugin54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown116030
PHP110924

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-1.png48.39KB14.70KB▼ 69.63%
screenshots/screenshot-2.png12.40KB3.45KB▼ 72.16%