83% wp-remember-your-posts

Code Review | WP Remember Your Posts

WordPress plugin WP Remember Your Posts scored83%from 54 tests.

About plugin

  • Plugin page: wp-remember-your-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.2
  • WordPress version: 6.3.1
  • First release: Jun 27, 2013
  • Latest release: Jun 28, 2013
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: hondamarlboro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /894 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
Install script ran successfully

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

This is a short check of server-side resources used by WP Remember Your Posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.40 ▼2.49
Dashboard /wp-admin3.32 ▲0.0247.96 ▼9.20
Posts /wp-admin/edit.php3.37 ▲0.0249.34 ▲0.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.62 ▼1.02
Media Library /wp-admin/upload.php3.24 ▲0.0241.47 ▲5.46

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Remember Your Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.74 ▲0.0244.70 ▲1.02
Dashboard /wp-admin2,195 ▲245.59 ▼0.0991.57 ▼0.5936.01 ▼6.34
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0239.64 ▲2.7637.82 ▲0.84
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▼0.03683.13 ▲64.3755.44 ▲6.25
Media Library /wp-admin/upload.php1,394 ▼34.17 ▼0.03104.48 ▼0.9846.19 ▲0.65

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-remember-your-posts/wp-remember-old-posts.php:12

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
  • Plugin Name: Please specify the plugin name on the first line ( === wp-remember-your-posts === )
Please take inspiration from this readme.txt

wp-remember-your-posts/wp-remember-old-posts.php 92% from 13 tests

The main PHP script in "WP Remember Your Posts" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-remember-your-posts.php" instead of "wp-remember-old-posts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121233

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin