84% junoe-xmlrpc-additional-methods

Code Review | Junoe XML-PRC Additionals

WordPress plugin Junoe XML-PRC Additionals scored 84% from 54 tests.

About plugin

  • Plugin page: junoe-xmlrpc-addi...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-4.3
  • WordPress version: 6.3.1
  • First release: Jun 15, 2015
  • Latest release: Aug 27, 2015
  • Number of updates: 38
  • Update frequency: every 2.0 days
  • Top authors: tohokuaiki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,213 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Junoe XML-PRC Additionals
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.62 ▼7.33
Dashboard /wp-admin3.31 ▲0.0144.30 ▼1.71
Posts /wp-admin/edit.php3.36 ▲0.0044.93 ▼2.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.65 ▼14.73
Media Library /wp-admin/upload.php3.23 ▲0.0033.50 ▲2.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Junoe XML-PRC Additionals
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.331.68 ▼0.2239.61 ▼0.76
Dashboard /wp-admin2,206 ▲185.90 ▲0.02109.25 ▲6.0837.45 ▼8.35
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0439.00 ▼1.3635.37 ▼2.37
Add New Post /wp-admin/post-new.php1,533 ▲1923.54 ▲6.01675.85 ▲7.9360.88 ▲5.48
Media Library /wp-admin/upload.php1,382 ▼94.20 ▼0.0293.44 ▼8.8042.78 ▼0.92

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
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just 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/junoe-xmlrpc-additional-methods/junoe-xmlrpc-additional-methods.php:25

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

junoe-xmlrpc-additional-methods/junoe-xmlrpc-additional-methods.php Passed 13 tests

The main PHP file in "Junoe XML-PRC Additionals" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
31 characters long description:
Add yet another XML-RPC methods

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

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions18
▷ Named functions18100.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
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/thumbs_up.png1.77KB1.82KB0.00%
icons/star_blue.png1.65KB1.33KB▼ 19.28%
icons/information.png1.02KB1.05KB0.00%
icons/check.png1.40KB1.42KB0.00%
icons/star_red.png1.58KB1.28KB▼ 18.89%