83% pokemon-accented-e

Code Review | Pokémon Accented E

WordPress plugin Pokémon Accented E scored 83% from 54 tests.

About plugin

  • Plugin page: pokemon-accented-e
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Aug 27, 2012
  • Latest release: Apr 18, 2014
  • Number of updates: 6
  • Update frequency: every 99.8 days
  • Top authors: AdamCapriola (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,148 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by Pokémon Accented E
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.37 ▼2.91
Dashboard /wp-admin3.31 ▲0.0044.09 ▼12.41
Posts /wp-admin/edit.php3.36 ▲0.0047.51 ▲1.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.31 ▼1.81
Media Library /wp-admin/upload.php3.23 ▲0.0032.65 ▼5.77

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pokémon Accented E
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.041.77 ▲0.0041.63 ▼10.55
Dashboard /wp-admin2,206 ▲215.81 ▼0.0396.18 ▼30.7740.57 ▼6.62
Posts /wp-admin/edit.php2,092 ▲212.06 ▲0.0439.51 ▲3.1335.36 ▼2.50
Add New Post /wp-admin/post-new.php1,514 ▼1917.76 ▼5.36628.42 ▼31.0866.03 ▲7.69
Media Library /wp-admin/upload.php1,382 ▼64.25 ▲0.0497.81 ▼19.9644.77 ▼2.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pokemon-accented-e/pokemon-accented-e.php:30

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Before...), #2 (And after!)
You can look at the official readme.txt

pokemon-accented-e/pokemon-accented-e.php 92% from 13 tests

The principal PHP file in "Pokémon Accented E" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 201 characters long)

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
Everything looks great! No dangerous files found in this plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1123619

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.53MB with 0.36MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png269.82KB83.59KB▼ 69.02%
screenshot-1.png268.51KB82.38KB▼ 69.32%