73% atwi-interview

Code Review | ATWI Interview Plugin

WordPress plugin ATWI Interview Plugin scored73%from 54 tests.

About plugin

  • Plugin page: atwi-interview
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Dec 24, 2014
  • Latest release: Dec 24, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: hol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼11.09ms] Passed 4 tests

A check of server-side resources used by ATWI Interview Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0434.95 ▼9.07
Dashboard /wp-admin3.35 ▲0.0145.33 ▼17.10
Posts /wp-admin/edit.php3.40 ▲0.0546.65 ▼2.63
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.10 ▼15.56
Media Library /wp-admin/upload.php3.27 ▲0.0435.42 ▲2.31
ATWI Interview /wp-admin/options-general.php?page=atwiinterviewoptions3.2129.73

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

ATWI Interview Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16413.49 ▼1.198.18 ▲6.3239.83 ▼3.90
Dashboard /wp-admin2,213 ▲284.88 ▼0.0098.19 ▼7.2040.11 ▼3.83
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0140.25 ▼1.5734.85 ▼0.81
Add New Post /wp-admin/post-new.php1,536 ▲323.24 ▲0.23677.70 ▲14.0356.53 ▲10.20
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0393.12 ▼2.5141.22 ▲0.84
ATWI Interview /wp-admin/options-general.php?page=atwiinterviewoptions8472.0322.0224.84

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=atwiinterviewoptions
    • > Notice in wp-content/plugins/atwi-interview/atwi-interview.php+122
    Undefined variable: plugin_url

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/atwi-interview/atwi-interview.php:19

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=atwiinterviewoptions
    • > Network (severe)
    css/atwi-style.css?ver=6.3.1 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (This is the input page (using the button in TinyMCE Advanced).), #2 (This is the result on post page.), #3 (This is the setting page. You can configure text color, font weight and text align.)
You can look at the official readme.txt

atwi-interview/atwi-interview.php Passed 13 tests

"ATWI Interview Plugin" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
ATWI Interview formatter plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin333 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15811172
HTML115092
CSS19049
JavaScript18120

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.19MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png55.66KB23.81KB▼ 57.23%
assets/screenshot-2.png75.35KB39.12KB▼ 48.08%
assets/screenshot-1.png63.01KB27.83KB▼ 55.83%
img/atwi_interview.png0.78KB0.70KB▼ 9.90%