68% repeating-post

Code Review | Repeating Posts

WordPress plugin Repeating Posts scored68%from 54 tests.

About plugin

  • Plugin page: repeating-post
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2013
  • Latest release: Apr 24, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: cey2 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,537 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.86MB] [CPU: ▼52.01ms] Passed 4 tests

An overview of server-side resources used by Repeating Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.40 ▲0.07
Dashboard /wp-admin2.09 ▼1.256.45 ▼51.68
Posts /wp-admin/edit.php2.09 ▼1.265.84 ▼37.07
Add New Post /wp-admin/post-new.php2.09 ▼3.795.44 ▼86.96
Media Library /wp-admin/upload.php2.09 ▼1.144.99 ▼32.34

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Repeating Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.301.72 ▲0.1043.50 ▲0.21
Dashboard /wp-admin2,192 ▲155.53 ▼0.0781.09 ▼8.8535.33 ▼7.58
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0134.03 ▼6.1733.55 ▼3.47
Add New Post /wp-admin/post-new.php1,535 ▲618.16 ▼5.12627.08 ▼45.3752.15 ▼1.72
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0695.65 ▼12.6343.11 ▼2.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the /jquery-ui-datepicker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/repeating-post/repeating-post-view.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/repeating-post/repeating-post-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/repeating-post/repeating-post.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Scoll to the bottom of the edit post page to get to repeating post), #2 (Date picker! You picker you!)
  • Plugin Name: Please specify the plugin name on the first line ( === repeating-post === )
The official readme.txt might help

repeating-post/repeating-post.php Passed 13 tests

Analyzing the main PHP file in "Repeating Posts" version 0.2
26 characters long description:
Schedules repeating posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin127 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33864124
JavaScript1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
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
assets/screenshot-1.png26.02KB7.08KB▼ 72.80%
assets/screenshot-2.png34.12KB9.59KB▼ 71.90%