84% whats-new-for-ameba-blog

Code Review | What's New for Ameba blog

WordPress plugin What's New for Ameba blog scored84%from 54 tests.

About plugin

  • Plugin page: whats-new-for-ame...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5+
  • WordPress version: 6.3.1
  • First release: Aug 12, 2018
  • Latest release: Jun 7, 2023
  • Number of updates: 24
  • Update frequency: every 73.5 days
  • Top authors: koyacode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,129 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.05MB] [CPU: ▼11.79ms] Passed 4 tests

Server-side resources used by What's New for Ameba blog
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.78 ▲3.24
Dashboard /wp-admin3.36 ▲0.0547.32 ▼0.89
Posts /wp-admin/edit.php3.47 ▲0.1148.50 ▼6.13
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.55 ▼40.28
Media Library /wp-admin/upload.php3.28 ▲0.0535.35 ▲0.13
What's new for Ameba blog /wp-admin/options-general.php?page=amebawhatsnew_show_admin_panel3.2530.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by What's New for Ameba blog
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.20 ▼1.091.73 ▼0.2842.70 ▼2.48
Dashboard /wp-admin2,210 ▲224.87 ▼1.03113.73 ▲0.8542.87 ▼2.28
Posts /wp-admin/edit.php2,093 ▲11.97 ▼0.0939.08 ▼2.0633.61 ▼3.76
Add New Post /wp-admin/post-new.php1,537 ▼123.19 ▲0.16656.16 ▲23.5956.31 ▲2.10
Media Library /wp-admin/upload.php1,395 ▲74.20 ▼0.0396.02 ▼4.3442.85 ▲0.28
What's new for Ameba blog /wp-admin/options-general.php?page=amebawhatsnew_show_admin_panel8252.1924.5725.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/whats-new-for-ameba-blog/whats-new-for-ameba-blog.php:362

User-side errors Passed 1 test

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

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:
  • Tested up to: Version format is invalid
You can take inspiration from this readme.txt

whats-new-for-ameba-blog/whats-new-for-ameba-blog.php Passed 13 tests

The main file in "What's New for Ameba blog" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Show What's new list of Ameba blog

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected339 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP159200274
PO File113735
CSS23030

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.22
Average class complexity6.67
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods342.86%
▷ Protected methods00.00%
▷ Private methods457.14%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
There were not PNG files found in your plugin