84% nyanpress

Code Review | Nyan Press

WordPress plugin Nyan Press scored84%from 54 tests.

About plugin

  • Plugin page: nyanpress
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2012
  • Latest release: Apr 3, 2012
  • Number of updates: 5
  • Update frequency: every 5.2 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,044 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.73ms] Passed 4 tests

Server-side resources used by Nyan Press
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.80 ▼1.03
Dashboard /wp-admin3.32 ▲0.0246.10 ▼3.89
Posts /wp-admin/edit.php3.37 ▲0.0251.19 ▲7.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.78 ▼12.20
Media Library /wp-admin/upload.php3.25 ▲0.0237.23 ▲2.20

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

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

Browser metrics Passed 4 tests

Nyan Press: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7513.37 ▼0.894.40 ▲2.1660.17 ▲11.15
Dashboard /wp-admin2,245 ▲575.87 ▲0.84101.48 ▼3.0223.64 ▼19.77
Posts /wp-admin/edit.php2,094 ▲22.02 ▲0.0436.48 ▼6.0520.72 ▼19.46
Add New Post /wp-admin/post-new.php1,591 ▲4822.49 ▲4.18694.12 ▲37.6645.61 ▼8.31
Media Library /wp-admin/upload.php1,390 ▲54.15 ▼0.04109.57 ▲8.6232.52 ▼11.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/nyanpress/nyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyan.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Your new awesome Nyanboard)
You can look at the official readme.txt

nyanpress/nyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyan.php 92% from 13 tests

"Nyan Press" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nyanpress.php" instead of "nyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyannyan.php")

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

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon32.png0.52KB0.31KB▼ 41.53%
images/big_avatar.png1.85KB1.38KB▼ 25.26%
screenshot-1.png101.02KB46.96KB▼ 53.51%
images/nyan-trail.png0.95KB0.14KB▼ 85.29%