84% now-you-see-me

Code Review | Now You See Me!

WordPress plugin Now You See Me! scored84%from 54 tests.

About plugin

  • Plugin page: now-you-see-me
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-4.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Apr 10, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jonorherrington (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

This is a short check of server-side resources used by Now You See Me!
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.52 ▼5.07
Dashboard /wp-admin3.31 ▼0.0449.43 ▼11.55
Posts /wp-admin/edit.php3.36 ▲0.0046.62 ▼0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.41 ▼15.04
Media Library /wp-admin/upload.php3.24 ▲0.0033.26 ▼4.48

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Now You See Me!
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,726 ▼4514.20 ▼0.481.83 ▼0.1443.73 ▼1.03
Dashboard /wp-admin2,131 ▼575.57 ▲0.7190.34 ▼20.8924.60 ▼21.92
Posts /wp-admin/edit.php2,071 ▲32.04 ▼0.0634.19 ▼1.2423.95 ▼11.58
Add New Post /wp-admin/post-new.php1,657 ▲14021.07 ▲3.54652.37 ▼24.4942.60 ▼11.45
Media Library /wp-admin/upload.php1,377 ▼54.19 ▼0.0893.82 ▼2.7429.95 ▼13.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/now-you-see-me/now-you-see-me.php:24

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: admin

now-you-see-me/now-you-see-me.php 92% from 13 tests

"Now You See Me!" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Good job! No executable or dangerous file extensions detected54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown115029
PHP132325

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin