68% meta-accelerator

Code Review | Meta Accelerator

WordPress plugin Meta Accelerator scored68%from 54 tests.

About plugin

  • Plugin page: meta-accelerator
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.5
  • WordPress version: 6.3.1
  • First release: Jul 30, 2014
  • Latest release: Apr 19, 2016
  • Number of updates: 38
  • Update frequency: every 17.1 days
  • Top authors: Yuichiro ABE (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /2,640 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.74MB] [CPU: ▼31.38ms] Passed 4 tests

An overview of server-side resources used by Meta Accelerator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1939.84 ▼1.00
Dashboard /wp-admin3.21 ▼0.1023.75 ▼19.06
Posts /wp-admin/edit.php3.21 ▼0.1524.19 ▼24.46
Add New Post /wp-admin/post-new.php3.21 ▼2.6823.77 ▼70.74
Media Library /wp-admin/upload.php3.21 ▼0.0322.36 ▼11.24

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
db_upgraded
meta-accelerator_cols_cnt
meta-accelerator_batch_count
theysaidso_admin_options
meta-accelerator_cols
meta-accelerator_index
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Meta Accelerator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.48 ▲0.121.77 ▼0.3840.89 ▼6.06
Dashboard /wp-admin2,207 ▲245.83 ▼0.10106.27 ▼0.2539.20 ▼5.36
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0238.91 ▼0.9334.82 ▼0.67
Add New Post /wp-admin/post-new.php1,517 ▲317.62 ▲0.16660.04 ▲31.6456.13 ▼11.57
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0196.32 ▲0.2442.03 ▼0.23
meta speedup /wp-admin/meta_accelerator_admin.php260.440.0814.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 10 options in the database
    • db_upgraded
    • meta-accelerator_batch_count
    • can_compress_scripts
    • meta-accelerator_index
    • meta-accelerator_cols_cnt
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • meta-accelerator_cols

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function meta_accelerator\\register_activation_hook() in wp-content/plugins/meta-accelerator/meta-accelerator.php:39

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/meta_accelerator_admin.php
    • > Network (severe)
    wp-admin/meta_accelerator_admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

meta-accelerator/meta-accelerator.php 92% from 13 tests

The main file in "Meta Accelerator" v. 1.0.4 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 folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,008 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4262379885
JavaScript1338111
CSS10012

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity77.50
▷ Minimum class complexity68.00
▷ Maximum class complexity87.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods45
▷ Static methods48.89%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin