90% recent-posts-on-editor

Code Review | Recent Posts on Editor

WordPress plugin Recent Posts on Editor scored90%from 54 tests.

About plugin

  • Plugin page: recent-posts-on-e...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: May 24, 2013
  • Latest release: May 24, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: takien (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /835 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.55ms] Passed 4 tests

Server-side resources used by Recent Posts on Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.33 ▼7.90
Dashboard /wp-admin3.32 ▲0.0245.77 ▼6.13
Posts /wp-admin/edit.php3.37 ▲0.0248.04 ▲2.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.62 ▲3.03
Media Library /wp-admin/upload.php3.24 ▲0.0234.17 ▲1.17

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Recent Posts on Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.29 ▼1.091.64 ▼0.1642.81 ▲0.57
Dashboard /wp-admin2,209 ▲244.85 ▼0.99106.09 ▲3.9539.99 ▲0.52
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0340.70 ▼1.0737.30 ▲2.37
Add New Post /wp-admin/post-new.php6,327 ▲4,81319.26 ▲1.58880.88 ▲266.5656.77 ▼6.35
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0195.79 ▼7.8741.73 ▲0.55

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
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: editor, wp-editor, recent page, recent post, dashboard...

recent-posts-on-editor/recent-posts-on-editor.php Passed 13 tests

The main PHP file in "Recent Posts on Editor" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
Displaying recent contents (post or page) on WordPress editor.

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
Everything looks great! No dangerous files found in this plugin196 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12810196

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin