83% oik-read-more

Code Review | oik-read-more

WordPress plugin oik-read-more scored83%from 54 tests.

About plugin

  • Plugin page: oik-read-more
  • Plugin version: 0.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9+
  • WordPress version: 6.3.1
  • First release: Mar 29, 2014
  • Latest release: Oct 20, 2023
  • Number of updates: 28
  • Update frequency: every 124.7 days
  • Top authors: bobbingwide (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,570 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by oik-read-more
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.16 ▲3.82
Dashboard /wp-admin3.34 ▼0.0145.97 ▼17.43
Posts /wp-admin/edit.php3.39 ▲0.0343.34 ▼6.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.05 ▼19.96
Media Library /wp-admin/upload.php3.27 ▲0.0436.92 ▲2.70

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

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

Browser metrics Passed 4 tests

Checking browser requirements for oik-read-more
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.35 ▼0.021.91 ▲0.3745.42 ▲3.74
Dashboard /wp-admin2,202 ▲255.49 ▼0.0984.35 ▼20.0641.68 ▼4.86
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0436.29 ▼2.2633.51 ▼2.25
Add New Post /wp-admin/post-new.php1,535 ▲923.13 ▲0.31666.09 ▼7.6352.29 ▼1.85
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.01101.92 ▲0.8046.09 ▲3.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oik-read-more/oik-read-more.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tested up to: The plugin version is formatted incorrectly
  • Screenshots: These screenshots do not have images: #1 (oik-read-more in action), #2 (result after 'read more' clicked)
You can look at the official readme.txt

oik-read-more/oik-read-more.php 92% from 13 tests

The main file in "oik-read-more" v. 0.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected201 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP341179201

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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