84% view-my-posts-alone

Code Review | View My Posts Alone

WordPress plugin View My Posts Alone scored84%from 54 tests.

About plugin

  • Plugin page: view-my-posts-alone
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 22, 2017
  • Latest release: Apr 29, 2017
  • Number of updates: 43
  • Update frequency: every 0.2 days
  • Top authors: nareshkumar1516 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,221 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.82ms] Passed 4 tests

Server-side resources used by View My Posts Alone
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.28 ▼6.30
Dashboard /wp-admin3.31 ▼0.0341.63 ▼18.84
Posts /wp-admin/edit.php3.36 ▲0.0144.10 ▲0.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.77 ▼9.52
Media Library /wp-admin/upload.php3.23 ▲0.0134.40 ▼0.62

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for View My Posts Alone
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.101.58 ▼0.0537.66 ▼2.91
Dashboard /wp-admin2,206 ▲155.83 ▲0.94111.62 ▲3.2343.82 ▲3.87
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0835.96 ▼0.0932.51 ▼1.99
Add New Post /wp-admin/post-new.php1,533 ▲1923.11 ▲5.60667.84 ▲37.5156.64 ▼7.17
Media Library /wp-admin/upload.php1,391 ▲64.25 ▲0.0995.38 ▼1.3241.53 ▼1.44

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/view-my-posts-alone/view_my_posts_alone.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: blogs, dashbaord, contributors, blog writers, multiple authors...

view-my-posts-alone/view_my_posts_alone.php 85% from 13 tests

Analyzing the main PHP file in "View My Posts Alone" version 1.0
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 297 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("view-my-posts-alone.php" instead of "view_my_posts_alone.php")

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 plugin20 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10920

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin