89% apocalypse-meow

Code Review | Apocalypse Meow

WordPress plugin Apocalypse Meow scored89%from 54 tests.

About plugin

  • Plugin page: apocalypse-meow
  • Plugin version: 21.7.5
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2012
  • Latest release: Aug 9, 2023
  • Number of updates: 189
  • Update frequency: every 20.8 days
  • Top authors: blobfolio (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

900+ active /56,592 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.29ms] Passed 4 tests

An overview of server-side resources used by Apocalypse Meow
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.49 ▼2.88
Dashboard /wp-admin3.31 ▼0.0479.21 ▲12.23
Posts /wp-admin/edit.php3.36 ▲0.0050.73 ▼2.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.42 ▼16.25
Media Library /wp-admin/upload.php3.23 ▲0.0033.45 ▼3.95

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Apocalypse Meow: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.381.78 ▼0.0844.74 ▲0.25
Dashboard /wp-admin2,198 ▲185.61 ▼0.0485.67 ▼7.5340.77 ▲0.35
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0140.36 ▲5.0335.70 ▼2.98
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▼0.43675.60 ▲24.8570.67 ▲11.82
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.03100.07 ▼7.2144.69 ▼3.04

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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
You can take inspiration from this readme.txt

apocalypse-meow/index.php 92% from 13 tests

Analyzing the main PHP file in "Apocalypse Meow" version 21.7.5
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("apocalypse-meow.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin10,823 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
PHP441,7482,5358,464
PO File15497791,927
Markdown32240349
HTML110050
JavaScript1201727
CSS4004
JSON1001
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity63.06
▷ Minimum class complexity1.00
▷ Maximum class complexity302.00
Average method complexity5.07
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes00.00%
Methods468
▷ Static methods39183.55%
▷ Public methods40285.90%
▷ Protected methods6614.10%
▷ Private methods00.00%
Functions26
▷ Named functions519.23%
▷ Anonymous functions2180.77%
Constants82
▷ Global constants2125.61%
▷ Class constants6174.39%
▷ Public constants61100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin