84% my-posts

Code Review | My Posts

WordPress plugin My Posts scored84%from 54 tests.

About plugin

  • Plugin page: my-posts
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 6.3.1
  • First release: May 21, 2015
  • Latest release: Oct 19, 2016
  • Number of updates: 9
  • Update frequency: every 57.6 days
  • Top authors: thedannywahl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by My Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0039.76 ▼1.90
Dashboard /wp-admin3.35 ▲0.0150.33 ▼2.00
Posts /wp-admin/edit.php3.40 ▲0.0145.69 ▼4.86
Add New Post /wp-admin/post-new.php5.93 ▲0.0185.16 ▼18.18
Media Library /wp-admin/upload.php3.28 ▲0.0140.04 ▲3.22
My Posts /wp-admin/edit.php?page=my-posts3.2232.21

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

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

Browser metrics Passed 4 tests

My Posts: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.26 ▼0.091.90 ▼0.0048.46 ▲3.57
Dashboard /wp-admin2,199 ▲225.66 ▼0.1195.95 ▲6.1742.87 ▲1.25
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0236.69 ▼1.3534.97 ▼8.60
Add New Post /wp-admin/post-new.php1,534 ▲323.25 ▲0.59651.37 ▲13.4050.29 ▼6.26
Media Library /wp-admin/upload.php1,407 ▲74.18 ▲0.0197.18 ▼5.8444.98 ▼1.28
My Posts /wp-admin/edit.php?page=my-posts7571.9922.5222.26

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=my-posts
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: posts, admin, post, multi-author

my-posts/my-posts.php Passed 13 tests

"My Posts" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
Adds a "My Posts" link under the "Posts" menu in the admin area.

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
Everything looks great! No dangerous files found in this plugin33 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File11118
PHP154415

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions2
▷ Named functions2100.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
No PNG files were detected